@extends("public.main")
@section("content")
    <div style="margin-left:200px;">
        <nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 分类管理 <span
                    class="c-gray en">&gt;</span>修改参数
        </nav>
        <form class="form form-horizontal form-o2o-add" id="form-o2o-add" method="post"
              action="/admin/pay/postedit" enctype="multipart/form-data">
            <div class="row cl">
                <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>公众号appid：</label>
                <div class="formControls col-xs-8 col-sm-6">
                    <input type="text" class="input-text" value="{{ $data['app_id'] }}" placeholder="" id="app_id" name="app_id">
                    <input type="hidden" class="input-text" value="{{ $data['id'] }}" placeholder="" id="id" name="id">
                    @if($errors->has('app_id'))
                        <a style="color:red">{{ $errors->first('app_id') }}</a>
                    @endif
                    {!!csrf_field()!!}
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>公众号appsect：</label>
                <div class="formControls col-xs-8 col-sm-6">
                    <input type="text" class="input-text" value="{{ $data['app_secect'] }}" placeholder="" id="app_secect" name="app_secect">
                    @if($errors->has('app_secect'))
                        <a style="color:red">{{ $errors->first('app_secect') }}</a>
                    @endif
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>商户id：</label>
                <div class="formControls col-xs-8 col-sm-6">
                    <input type="text" class="input-text" value="{{ $data['med_id'] }}" placeholder="" id="med_id" name="med_id">
                    <input type="hidden" class="input-text" value="{{ $data['id'] }}"   name="id">
                    @if($errors->has('med_id'))
                        <a style="color:red">{{ $errors->first('med_id') }}</a>
                    @endif

                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>商户秘钥：</label>
                <div class="formControls col-xs-8 col-sm-6">
                    <input type="text" class="input-text" value="{{ $data['med_secect'] }}" placeholder="" id="med_secect" name="med_secect">
                    @if($errors->has('med_secect'))
                        <a style="color:red">{{ $errors->first('med_secect') }}</a>
                    @endif
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>会员一价格：</label>
                <div class="formControls col-xs-8 col-sm-6">
                    <input type="text" class="input-text" value="{{ $data['price_min'] }}" placeholder="" id="price_min" name="price_min">
                    @if($errors->has('price_min'))
                        <a style="color:red">{{ $errors->first('price_min') }}</a>
                    @endif
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>会员二价格：</label>
                <div class="formControls col-xs-8 col-sm-6">
                    <input type="text" class="input-text" value="{{ $data['price_max'] }}" placeholder="" id="price_max" name="price_max">
                    @if($errors->has('price_max'))
                        <a style="color:red">{{ $errors->first('price_max') }}</a>
                    @endif
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>展示logo：</label>
                <div class="formControls col-xs-8 col-sm-6"> <span class="btn-upload form-group">
				<input class="input-text upload-url" type="text" name="logo" id="logo" readonly nullmsg="请添加附件！" style="width:200px">
                        <a href="javascript:void();" class="btn btn-primary radius upload-btn"><i class="Hui-iconfont">&#xe642;</i> 浏览文件</a><span class="c-red">图片没有更换不用上传</span>
				<input type="file" multiple name="logo" class="input-file">

				</span>
                    <br/>  <br/>
                    <img style="width: 80px" src="{{$data['logo']}}">
                </div>
                @if($errors->has('logo'))
                    <a style="color:red">{{ $errors->first('logo') }}</a>
                @endif
            </div>
            <div>
            </div>
            <div class="row cl">
                <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
                    <button type="submit" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe632;</i> 保存
                    </button>
                    <button onClick="layer_close();" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
                </div>
            </div>
        </form>
    </div>
@endsection

